package com.example.blog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author Admin
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "live_info")
@ApiModel(value = "LiveInfo对象",description = "直播信息表")
public class LiveInfo {

    @TableId(value = "id")
    @ApiModelProperty(value = "直播id")
    private String id;

    @TableField(value = "room_no")
    @ApiModelProperty(value = "房间号，6位数")
    private String roomNo;

    @TableField(value = "room_name")
    @ApiModelProperty(value = "房间名")
    private String roomName;

    @TableField(value = "title")
    @ApiModelProperty(value = "标题")
    private String title;

    @TableField(value = "introduce")
    @ApiModelProperty(value = "介绍")
    private String introduce;

    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户id")
    private String userId;

    @TableField(value = "user_name")
    @ApiModelProperty(value = "直播用户昵称")
    private String userName;

    @TableField(value = "start_time")
    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startTime;

    @TableField(value = "actual_start_time")
    @ApiModelProperty(value = "实际开始时间")
    private LocalDateTime actualStartTime;

    @TableField(value = "end_time")
    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    @TableField(value = "pic_url")
    @ApiModelProperty(value = "图片地址")
    private String picUrl;

    @TableField(value = "playback_url")
    @ApiModelProperty(value = "回放链接")
    private String playbackUrl;

    @TableField(value = "live_status")
    @ApiModelProperty(value = "直播状态,0未开始1已开始2已结束")
    private Integer liveStatus;

    @TableField(value = "status")
    @ApiModelProperty(value = "状态，0隐藏1启用9删除")
    private Integer status;

}
